package com.bite.book.adapter;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2025-06-06
 * Time:20:54
 */
//适配器
public class Log4jAdapter implements Slf4jLog{
    private Log4j log4j;//注入目标

    public Log4jAdapter(Log4j log4j) {
        this.log4j = log4j;
    }

    @Override
    public void log(String message) {
        log4j.log4jPrint("我是适配器，打印日志为：" +message);
    }
}
